<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>会员管理 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{'vip_list_head'|fire}
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li class="active"><a href="#"><i class="icon-user"></i>会员列表</a></li>
			    <li><a href="./?Ctlr=AddVip"><i class="icon-plus"></i>新增会员</a></li>			    
		    </ul>
		    
		    <div>
				<form class="well form-inline" method="get" action=".">
				    <input type="text" class="input-small" name="uid" value="{$uid}" placeholder="UID"/>
				    <input type="text" class="input-medium" name="account" value="{$account}" placeholder="会员账户"/>				    
				    <input type="text" class="input-medium" name="email" value="{$email}" placeholder="邮箱"/>
				    {html_options name=gname options=$group_options selected=$gname}
				    <label class="radio">
						<input type="radio" name="status" value="" {$status|checked:''}>全部
					</label>
					<label class="radio torg">
						<input type="radio" name="status" value="new" {'new'|checked:$status}>未激活
					</label>
					<label class="radio tgre">
						<input type="radio" name="status" value="actived" {'actived'|checked:$status}>正常
					</label>
					<label class="radio tred">
						<input type="radio" name="status" value="inactived" {'inactived'|checked:$status}>禁用
					</label>
				    <button type="submit" class="btn">搜索</button>
			    </form>
		    </div>
		    
		    <table id="user-list" class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th class="col_chk"><input type="checkbox"/></th>
						<th class="w50 txt-ac">{'UID'|sorth:uid:$curl}</th>
						<th class="wa">{'会员账号'|sorth:account:$curl}</th>						
						<th class="w150">{'邮箱'|sorth:email:$curl}</th>
						<th class="txt-ac w50">{'状态'|sorth:status:$curl}</th>
						<th class="w120 txt-ac">{'隶属于组'|sorth:group_id:$curl}</th>
						<th class="w100">{'第三方登录'|sorth:sns_from:$curl}</th>
						<th class="w120 txt-ac">{'最后登录'|sorth:last_login:$curl}</th>						
					</tr>
				</thead>
				<tbody>
					{foreach from=$items item=item}
					<tr>
						<td class="col_chk"><input type="checkbox" value="{$item.uid}"/></td>
						<td class="txt-ac">{$item.uid}</td>
						<td class="has-row-actions">
							<p>
								<span class="label mgr5">注册:{$item.reg_time|date_format} @ {$item.reg_ip}</span>								
							</p>
							<p><strong>{$item.account}</strong></p>
							<div class="row-actions">
								{'get_vip_options'|fire:$item}
							</div>
						</td>						
						<td>{$item.email}</td>
						<td class="txt-ac">{$item.status|status:$stas}</td>
						<td class="txt-ac">{$item.group_name}</td>
						<td class="txt-ac">{$item.sns_from}</td>
						<td class="txt-ac">
							{$item.last_login|date_format}<br/>
							<span class="label">{$item.last_ip}</span>							
						</td>						
					</tr>
					{foreachelse}
					<tr>
						<td colspan="9" class="txt-ac">无记录</td>						
					</tr>
					{/foreach}
				</tbody>
			</table>
			<div class="form-horizontal">
				<div class="control-group pull-left">
					<div class="btn-group">
						<button class="btn" id="btn-selectall" href="#"><i class="icon-check"></i>全选/反选</button>
			          	<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
			          	<ul class="dropdown-menu">			            
			            	{'get_vip_bench_options'|fire}			            		            
			          	</ul>
			    	</div>
				</div>
				<div class="pagination pull-right">
					{$curl|paging:$totalCount:$limit:'start'}
			    </div>
		    </div>
		</div>		
		
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript" src="list.js"></script>		
		{'vip_list_foot'|fire}
	</body>
</html>